/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.proyectofinal.ramas.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author nicolas
 */


@Entity
@Table(name = "UserRole")
public class UserRole implements Serializable {
    
    @EmbeddedId
    private UserRolePK userRolePK;
    
    @JoinColumn(name = "userRoleStatusID")
    @GeneratedValue
    @ManyToOne
    private UserRoleStatus userRoleStatus;
    
    @Column(name = "loadDate")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date loadDate;

    public Date getLoadDate() {
        return loadDate;
    }

    public void setLoadDate(Date loadDate) {
        this.loadDate = loadDate;
    }

    public UserRolePK getUserRolePK() {
        return userRolePK;
    }

    public void setUserRolePK(UserRolePK userRolePK) {
        this.userRolePK = userRolePK;
    } 

    public UserRoleStatus getUserRoleStatus() {
        return userRoleStatus;
    }

    public void setUserRoleStatus(UserRoleStatus userRoleStatus) {
        this.userRoleStatus = userRoleStatus;
    }
    
}
    
